﻿namespace = genoa

# start event
genoa.1 = {
	type = country_event
	placement = root
	title = genoa.1.t
	desc = genoa.1.d
	flavor = genoa.1.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}

	immediate = {
	}

	option = {
		name = genoa.1.a
        default_option = yes
		add_treasury = -400000
		s:STATE_CORSICA.region_state:GEN = {
			add_radicals = {
				value = 0.75
				culture=cu:central_italian
			}
		}

		trigger_event = { id = genoa.2 days = 30 }
	}
}

#Duke decides to sell Corsican and Genoa
genoa.2 = {
	type = country_event
	placement = root
	title = genoa.2.t
	desc = genoa.2.d
	flavor = genoa.2.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}

	option = {
		name = genoa.2.a
        default_option = yes
		trigger_event = { id = genoa.3 days = 30 }
	}
}

#The Leak
genoa.3 = {
	type = country_event
	placement = root
	title = genoa.3.t
	desc = genoa.3.d
	flavor = genoa.3.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}

	option = {
		name = genoa.3.a
        default_option = yes
	}
}

# The San Gian Batista insurrection
genoa.4 = {
	type = country_event
	placement = root
	title = genoa.4.t
	desc = genoa.4.d
	flavor = genoa.4.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}

	option = {
		name = genoa.4.a
		default_option = yes
		#trigger_event = { id = genoa.# }
		ai_chance = {
			base = 50
		}        
	}

	option = {
		name = genoa.4.b
		trigger_event = { id = genoa.5 }
        ai_chance = {
			base = 50
		}
	}
}

#Republican Path
genoa.5 = {
    type = country_event
    placement = root
    title = genoa.5.t
    desc = genoa.5.d
    flavor = genoa.5.f

    duration = 3

    event_image = {
        video = "gfx/event_pictures/unspecific_factory_closed.bk2"
    }

    on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
    on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

    icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

    trigger = {
    }

    option = {
        name = genoa.5.a
        default_option = yes
        ig:ig_armed_forces = {
            remove_ruling_interest_group = yes
        }
        ig:ig_landowners = {
            add_ruling_interest_group = yes
        }
        ruler = { kill_character = yes }
        if = {
            limit = {
                NOT = { has_law = law_type:law_oligarchy }
            }
            activate_law = law_type:law_oligarchy
        }
        c:ARN = {
            remove_diplomatic_pact = {
                country = c:GEN
                type = customs_union
            }
			trigger_event = {
                id = genoa.7
                days = 7
                popup = yes
            }
        }
		c:SAV = {
            trigger_event = {
                id = genoa.6
                days = 7
                popup = yes
            }
        }

    }
}

#Savoy Invasion Event
genoa.6 = {
	type = country_event
	placement = root
	title = genoa.6.t
	desc = genoa.6.d
	flavor = genoa.6.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}
	
	option = {
		name = genoa.6.a
		ai_chance = {
			base = 100
		}
		default_option = yes     
		add_modifier = { 
			name = dvg_a_dukes_pleasures
			months = 600
		}
		c:DUA = {
			trigger_event = {
                id = genoa.8
                days = 7
                popup = yes
            }
        }
		
		custom_tooltip = {
			text = dvg_this_will_lead_to_war_with_genoa
			create_diplomatic_play = {
				name = savoy_genoa_war
			
				target_country = c:GEN
				
				war = yes
				
				type = dp_annex_war
				
				add_war_goal = {
					holder = c:GEN
					type = war_reparations
					target_country = c:SAV
				}
				add_war_goal = {
					holder = c:GEN
					type = conquer_state
					target_state = s:STATE_PROVENCE.region_state:SAV
				}
			}
		}
		hidden_effect = {
			c:GEN = {
				trigger_event = {
					id = genoa.9
					days = 31
					popup = yes
				}
			}	
		}	
	}

	option = {
		name = genoa.6.b 
		ai_chance = {
			base = 0
		}
		add_modifier = { 
			name = dvg_emberassing_savoy_king 
			months = 60
		}  
	}
}

#Aragon Forced to Leave Market
genoa.7 = {
	type = country_event
	placement = root
	title = genoa.7.t
	desc = genoa.7.d
	flavor = genoa.7.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}

	option = {
		name = genoa.7.a
		default_option = yes  
	}
}

#DUA Decision to Kick Savoy
genoa.8 = {
	type = country_event
	placement = root
	title = genoa.8.t
	desc = genoa.8.d
	flavor = genoa.8.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}

	option = {
		name = genoa.8.a
		default_option = yes 
		c:DUA = {
            remove_diplomatic_pact = { 
                country = c:SAV
                type = customs_union
            }
		}
	}

	option = {
		name = genoa.8.b
		add_modifier = { 
			name = dvg_dua_sav_diplomat 
			months = 60
		}
	}
}

#Republican War Support
genoa.9 = {
	type = country_event
	placement = root
	title = genoa.9.t
	desc = genoa.9.d
	flavor = genoa.9.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}

	option = {
		name = genoa.9.a
		default_option = yes
		add_radicals = {
			value = 0.1
			culture = cu:north_italian
		}
	}

	option = {
		name = genoa.9.b
		ig:ig_intelligentsia = {
			set_interest_group_name = ig_bolognese_school
			set_ig_suppression = no
		}
		if = {
            limit = {
                NOT = { has_law = law_type:law_national_militia }
            }
            activate_law = law_type:law_national_militia
        }
		add_modifier = { 
			name = dvg_genoa_miltias
			months = 60
		}
		
		trigger_event = {
			id = genoa.10
			days = 60
			popup = yes
		}
	}
}

#Republican War Support II 
genoa.10 = {
	type = country_event
	placement = root
	title = genoa.10.t
	desc = genoa.10.d
	flavor = genoa.10.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}

	option = {
		name = genoa.10.a
		ai_chance = {
			base = 50
		}
		add_treasury = 50000 
	}

	option = {
		name = genoa.10.b
		ai_chance = {
			base = 50
		}     
		default_option = yes
		add_modifier = { 
			name = dvg_approval_buff
			months = 60
		}
		add_modifier = { 
			name = dvg_genoa_revolutionary_support
			months = 120
		}
		add_treasury = 50000
		ig:ig_intelligentsia = {
            add_ruling_interest_group = yes
        }
		every_country = {
			if = {
				limit = {
					NOT = { this = ROOT }
					country_has_primary_culture = cu:north_italian
				}

				change_relations = { 
					country = ROOT
					value = -50 
				}
			}
		}
		change_relations = { 
			country = c:TUS
			value = 100 
		}
	}
}

#Republicans demand the Franchise
genoa.11 = {
	type = country_event
	placement = root
	title = genoa.11.t
	desc = genoa.11.d
	flavor = genoa.11.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
		has_law = law_type:law_national_militia
		has_truce_with = c:SAV
		has_ruling_interest_group = ig_intelligentsia
	}

	option = {
		name = genoa.11.a
		ai_chance = {
			base = 50
		}
		ig:ig_intelligentsia = {
            remove_ruling_interest_group = yes
        }
		add_radicals = {
			value = 0.25
			culture = cu:north_italian
		}
	}

	option = {
		name = genoa.11.b
		ai_chance = {
			base = 50
		}
		default_option = yes
		if = {
            limit = {
                NOT = { has_law = law_type:law_wealth_voting }
            }
            activate_law = law_type:law_wealth_voting
        }
	}
}
#In the future, this should lead to a revolutionary lead Genoa, tied to Eturia.
#If Eturia lead by the radicals, become a puppet. If Eturia lead by conservatives, new home of the Italian revolution or join the Italian Confederation.

#Corsican Revolt for Republic
genoa.12 = {
	type = country_event
	placement = root
	title = genoa.12.t
	desc = genoa.12.d
	flavor = genoa.12.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
		has_truce_with = c:SAV
		OR = {
			has_law = law_type:law_oligarchy
			has_law = law_type:law_wealth_voting
		}
		
	}

	immediate = {
	}

	option = {
		name = genoa.12.a
		default_option = yes
		ai_chance = {
			base = 90
		}
		s:STATE_CORSICA.region_state:GEN = {
			add_loyalists = {
				value = 0.33
				culture=cu:central_italian
			}
		}
		if = {
            limit = {
                NOT = { has_law = law_type:law_racial_segregation }
            }
            activate_law = law_type:law_racial_segregation
        }
	}

	option = {
		name = genoa.12.b
		ai_chance = {
			base = 10
		}

		create_country = {
				tag = COR
				origin = this
				state = s:STATE_CORSICA.region_state:GEN
				on_created = {
					create_character = {
						first_name = "Mateo"					
						last_name = "Falcone"
						culture=cu:central_italian
						ruler = yes
						traits = { expert_defensive_strategist persistent brave romantic}
						birth_date = 1785.10.19
					}
				}
			}
		c:COR = {
			trigger_event = {
			id = genoa.13 #Corsica independence event
			days = 7
			popup = yes
			}
		}
	}

	option = {
		name = genoa.12.c
		ai_chance = {
			base = 0
		}
		create_country = {
				tag = COR
				origin = this
				state = s:STATE_CORSICA.region_state:GEN
				on_created = {
					create_character = {
						first_name = "Mateo"					
						last_name = "Falcone"
						culture=cu:central_italian
						ruler = yes
						interest_group = ig_armed_forces
						traits = { expert_defensive_strategist persistent brave romantic}
						birth_date = 1785.10.19
					}
				}
			}
	
		play_as = c:COR
	
		c:COR = {
			trigger_event = {
			id = genoa.13 #Corsica independence event
			days = 7
			popup = yes
			}
		}
	}
}

# Corsica Independence Event and Foreign Policy
genoa.13 = {
	type = country_event
	placement = root
	title = genoa.13.t
	desc = genoa.13.d
	flavor = genoa.13.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}

	option = {
		name = genoa.13.a 
        default_option = yes
		add_treasury = 20000
		if = {
            limit = {
                NOT = { has_law = law_type:law_national_militia }
				NOT = { has_law = law_type:law_no_womens_rights }
				NOT = { has_law = law_type:law_slavery_banned }
				NOT = { has_law = law_type:law_hereditary_bureaucrats }
				NOT = { has_law = law_type:law_census_voting }
				NOT = { has_law = law_type:law_traditionalism }
            }
            activate_law = law_type:law_national_militia
			activate_law = law_type:law_no_womens_rights
			activate_law = law_type:law_slavery_banned
			activate_law = law_type:law_hereditary_bureaucrats
			activate_law = law_type:law_census_voting
			activate_law = law_type:law_traditionalism
        }
		add_loyalists = {
            value = 0.75
            culture = cu:central_italian
        }
		c:TUS = {
			trigger_event = {
				id = genoa.14 
				days = 30
				popup = yes
			}
		}
	}
	
	option = { # Declare our Independence Alone -> Genoa attack or lets it go
		name = genoa.13.b
		add_treasury = 20000
		if = {
            limit = {
                NOT = { has_law = law_type:law_national_militia }
				NOT = { has_law = law_type:law_no_womens_rights }
				NOT = { has_law = law_type:law_slavery_banned }
				NOT = { has_law = law_type:law_hereditary_bureaucrats }
				NOT = { has_law = law_type:law_census_voting }
				NOT = { has_law = law_type:law_traditionalism }
            }
            activate_law = law_type:law_national_militia
			activate_law = law_type:law_no_womens_rights
			activate_law = law_type:law_slavery_banned
			activate_law = law_type:law_hereditary_bureaucrats
			activate_law = law_type:law_census_voting
			activate_law = law_type:law_traditionalism
        }
		add_loyalists = {
            value = 0.75
            culture = cu:central_italian
        }
		c:GEN = {
			trigger_event = {
				id = genoa.19 
				days = 7
				popup = yes
			}
		}
	}
}

#Corsica asks for support from Eturia
genoa.14 = { 
	type = country_event
	placement = root
	title = genoa.14.t
	desc = genoa.14.d
	flavor = genoa.14.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}

	option = {
		name = genoa.14.a
        default_option = yes
		ai_chance = {
			base = 66
		}  	
		create_diplomatic_pact = {
			country = c:COR
			type = alliance
		}
		change_relations = { 
			country = c:COR
			value = 200 
		}
		c:COR = {
			trigger_event = {
				id = genoa.15 
				days = 30
				popup = yes
			}
			change_relations = { 
				country = c:TUS
				value = 200 
			}
		}
	}

	option = {
		name = genoa.14.b
		ai_chance = {
			base = 34
		}
		change_relations = { 
			country = c:COR
			value = -100 
		}  
		c:COR = {
			trigger_event = {
				id = genoa.17 
				days = 30
				popup = yes
			}
		}
	}
}

#Eturia Supports Corsica -> Genoa Response
genoa.15 = { 
	type = country_event
	placement = root
	title = genoa.15.t
	desc = genoa.15.d
	flavor = genoa.15.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}   
		
	option = {
		name = genoa.15.a
		default_option = yes

		c:GEN = {
			trigger_event = {
				id = genoa.16 
				days = 30
				popup = yes
			}
		}
	}
}

# Genoa Republic, to Attack or Let Go (Eturia supports Corsica)
genoa.16 = { 
	type = country_event
	placement = root
	title = genoa.16.t
	desc = genoa.16.d
	flavor = genoa.16.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}   
		
	option = {
		name = genoa.16.a
		ai_chance = {
			base = 33
		}  

		#WAR
		custom_tooltip = {
			text = dvg_this_will_lead_to_war_with_corsica_II
			create_diplomatic_play = {
				name = corsica_independence_war
			
				target_country = c:COR
				
				war = yes
				
				type = dp_annex_war
				
				add_war_goal = {
					holder = c:COR
					type = humiliation
					target_country = c:GEN
				}

				add_war_goal = {
					holder = c:TUS
					type = war_reparations
					target_country = c:GEN
				}
			}
		}
	}

	option = {
		name = genoa.16.b
		default_option = yes
		ai_chance = {
			base = 67
		} 
		add_modifier = { 
			name = dvg_genoa_losses_corsica 
			months = 60
		}
		hidden_effect = {
			c:COR = {
				trigger_event = {
					id = genoa.20 
					days = 30
					popup = yes
				}
			}
		}   
	}
}

#No Support from Etruria Corsica
genoa.17 = { 
	type = country_event
	placement = root
	title = genoa.17.t
	desc = genoa.17.d
	flavor = genoa.17.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}   
		
	option = {
		name = genoa.17.a
		default_option = yes

		c:GEN = {
			trigger_event = {
				id = genoa.18 
				days = 30
				popup = yes
			}
		}
	}
}

# Genoa Republic, to Attack or Let Go (Eturia does not supports Corsica)
genoa.18 = { 
	type = country_event
	placement = root
	title = genoa.18.t
	desc = genoa.18.d
	flavor = genoa.18.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}   
		
	option = {
		name = genoa.18.a
		default_option = yes
		ai_chance = {
			base = 33
		}  

		#WAR
		custom_tooltip = {
			text = dvg_this_will_lead_to_war_with_corsica
			create_diplomatic_play = {
				name = corsica_independence_war
			
				target_country = c:COR
				
				war = yes
				
				type = dp_annex_war
				
				add_war_goal = {
					holder = c:COR
					type = humiliation
					target_country = c:GEN
				}

				add_war_goal = {
					holder = c:COR
					type = war_reparations
					target_country = c:GEN
				}
			}
		}
	}

	option = {
		name = genoa.18.b
		ai_chance = {
			base = 33
		} 
		add_modifier = { 
			name = dvg_genoa_losses_corsica 
			months = 60
		}   
	}
}

# Genoa Republic, Corsican Revolt (Corsica goes alone)
genoa.19 = { 
	type = country_event
	placement = root
	title = genoa.19.t
	desc = genoa.19.d
	flavor = genoa.19.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = {
	}   
		
	option = {
		name = genoa.19.a
		default_option = yes
		ai_chance = {
			base = 33
		}  

		#WAR
		custom_tooltip = {
			text = dvg_this_will_lead_to_war_with_corsica
			create_diplomatic_play = {
				name = corsica_independence_war
			
				target_country = c:COR
				
				war = yes
				
				type = dp_annex_war
				
				add_war_goal = {
					holder = c:COR
					type = humiliation
					target_country = c:GEN
				}

				add_war_goal = {
					holder = c:COR
					type = war_reparations
					target_country = c:GEN
				}
			}
		}
	}

	option = {
		name = genoa.19.b
		ai_chance = {
			base = 33
		} 
		add_modifier = { 
			name = dvg_genoa_losses_corsica 
			months = 60
		}   
	}
}

#Corsica Annexation Chain #Being Worked ###################################################################################################################

#COR to have the player switch to Etruria -> Followed by an annexation event.
genoa.20 = { 
	type = country_event
	placement = root
	title = genoa.20.t
	desc = genoa.20.d
	flavor = genoa.20.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	trigger = { #Still says bugged, but I think it works???
		exists = c:COR
		AND = {
			c:COR = {
				has_truce_with = c:GEN 
			}
			c:COR = {
				has_diplomatic_pact = {
					who = c:TUS
					type = alliance
				}
			}
		}
	}
		
	option = {
		name = genoa.20.a
		default_option = yes
		ai_chance = {
			base = 100
		}  
		play_as = c:TUS
		hidden_effect = {
			c:TUS = {
				trigger_event = {
					id = genoa.21 
					days = 30
					popup = yes
				}
			}
		}  
	}	
}

# Etruria annexs Corsica
genoa.21 = { # TUS annex COR event
	type = country_event
	placement = root

	title = genoa.21.t
	desc = genoa.21.d
	flavor = genoa.21.f

	duration = 3

	event_image = {
		video = "gfx/event_pictures/unspecific_factory_closed.bk2"
	}

	on_created_soundeffect = "event:/SFX/UI/Alerts/event_appear"
	on_opened_soundeffect = "event:/SFX/Events/unspecific/factory_closed"

	icon = "gfx/interface/icons/event_icons/event_newspaper.dds"

	immediate = {
		c:COR = {
			save_scope_as = annex_corsica
		}
	}
		
	option = {
		name = genoa.21.a
		default_option = yes
		annex = scope:annex_corsica

		create_character = {
			first_name = "Mateo"					
			last_name = "Falcone"
			culture = cu:central_italian
			is_general = yes
			traits = { experienced_defensive_strategist bandit brave romantic} #Might be too OP, decrease 
			birth_date = 1785.10.19
			interest_group = ig_armed_forces
			ideology = ideology_traditionalist
		}

		ai_chance = {
			base = 50
		}
	}

	option = {
		name = genoa.21.b
		default_option = yes
		annex = scope:annex_corsica

		add_loyalists = {
			value = 0.15
			culture=cu:central_italian
		}  

		ai_chance = {
			base = 50
		}
	}	
}

#Update images for event -> Bug fix -> 
# Savoy Humiliated Event
# Corsica revolt for Savoy if Genoa is lost (Triggers, Genoa does not exist, own Corisca...)

#Fix 20 + Mateo Falcone OP?
#Flavor 20

#Savoy Humiliation Event (Prestige, interest group lose support, and radicals)


# Have Falcone become a general post war in Eturia


#GENOA 4 DUKE PATH
	#Become a duke event 










#Future Use

#Start War
#		create_diplomatic_play = {
#			name = green_prince_war
#
#			target_state = s:STATE_TVER.region_state:TVE
#			
#			war = yes
#			
#			type = dp_annex_war
#
#			add_war_goal = {
#				holder = c:TVE
#				type = annex_country
#				target_country = c:MSO
#			}
#		}	

#Create Tag
#        create_country = {
#            tag = ZAN
#            origin = this
#            state = s:STATE_ZANZIBAR.region_state:OMA
 #           on_created = {
  #              create_character = {
   #                 first_name = "Majid"					
    #                last_name = "al_Said"
     #               culture=cu:bedouin
      #              ruler = yes
       #             traits = { hedonist ambitious }
        #            birth_date = 1834.10.19 # Majid's exact birthdate is unknown, so it is arbitrarily being set to the same month and day as the start of his reign as sultan, because a January 1st birthday is boring.
         #       }
          #  }
        #}

